package com.hjm.project.formalPos.branchPos.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 手刷机具分配对象 branch_pos
 *
 * @author LOVE
 * @date 2020-11-26
 */
@Data
public class BranchPos extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 终端编号
     */
    @Excel(name = "终端编号")
    private String posno;

    /**
     * 终端类型 0-传统Pos 1-Mpos 2-智能Pos 3-机构 4-电签POS
     */
    @Excel(name = "终端类型 0-传统Pos 1-Mpos 2-智能Pos 3-机构 4-电签POS")
    private Long posType;

    /**
     * 服务商编号
     */
    @Excel(name = "服务商编号")
    private Long agentNum;

    /**
     * 销售员编号
     */
    @Excel(name = "销售员编号")
    private Long saleNum;

    /**
     * 添加人
     */
    @Excel(name = "添加人")
    private String createname;

    /**
     * 机器号
     */
    @Excel(name = "机器号")
    private String machineNum;

    /**
     * 是否绑定商户 0 未绑定 1 绑定的
     */
    @Excel(name = "是否绑定商户 0 未绑定 1 绑定的")
    private Long isbound;

    /**
     * 激活：1：激活2：未激活
     */
    @Excel(name = "激活：1：激活2：未激活")
    private Long activate;

    /**
     * 激活时间
     */
    @Excel(name = "激活时间")
    private String activateDate;

    /**
     * 值为空时为普通终端，反之则为活动ID
     */
    @Excel(name = "值为空时为普通终端，反之则为活动ID")
    private Long actId;

    /**
     * 日是否达标完成  (-1 - 已过考核期 -2 - 变更商户)  0 是 1第一阶段 2 第二阶段 ...... 依次类推
     */
    @Excel(name = "日是否达标完成  (-1 - 已过考核期 -2 - 变更商户)  0 是 1第一阶段 2 第二阶段 ...... 依次类推")
    private Long isDayStage;

    /**
     * 月是否达标完成  (-1 - 已过考核期 -2 - 变更商户)  0 是 1第一阶段 2 第二阶段 ...... 依次类推
     */
    @Excel(name = "月是否达标完成  (-1 - 已过考核期 -2 - 变更商户)  0 是 1第一阶段 2 第二阶段 ...... 依次类推")
    private Long isMonStage;

    /**
     * 0激活未返  1 已返
     */
    @Excel(name = "0激活未返  1 已返")
    private Long returnStatus;

    /**
     * 活动截止日期
     */
    @Excel(name = "活动截止日期")
    private String actEnd;

    /**
     * 流量卡费
     */
    @Excel(name = "流量卡费")
    private Long simFee;

    private String sim_end;
    private String service_fee;
    private String service_end;

    /**
     * 机具类型：1 划拨机 2 自购机
     */
    @Excel(name = "机具类型：1 划拨机 2 自购机")
    private String dqType;

    /**
     * 达标日期
     */
    @Excel(name = "达标日期")
    private String dbDate;

    /**
     * 添加时间
     */
    @Excel(name = "添加时间")
    private String createtime;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    private String updatetime;

    private String sns;

    private String actAgentNum;            //激活返现代理
    private String reachAgentNum;          //达标返现代理

    private String flowAgentNum;          //流量卡费返现代理
    private String staReachAgentNum;          //阶段达标返现代理
    private String serviceAgentNum;          //服务费返现代理
    private Long buyerNum;               //购买人编号
    private Integer posCount;               //终端数量

    private Integer belongToType;       //底薪计划所属类型：1-属于自己 2-属于上级
    private Integer belongToAgentNum;       //底薪计划所属代理商编号

    private String buyerName;   //购买人名称

    private String machineModel;    //终端型号

    private Integer actName;  //活动名称

    private String manuNum;


    private Integer active_type;            //激活返现类型 0 反本级 1 反下级
    private Integer standard_type;          //达标返现类型 0 反本级 1 反下级
    private Integer flow_type;              //流量费返现类型 0 反本级 1 反下级
    private Integer stage_standard_type;    //阶段达标返现类型 0 反本级 1 反下级
    private Integer service_type;           //服务费返现类型 0 反本级 1 反下级

    public Integer getBelongToType() {
        return belongToType;
    }

    public void setBelongToType(Integer belongToType) {
        this.belongToType = belongToType;
    }

    public Integer getBelongToAgentNum() {
        return belongToAgentNum;
    }

    public void setBelongToAgentNum(Integer belongToAgentNum) {
        this.belongToAgentNum = belongToAgentNum;
    }

    public Integer getPosCount() {
        return posCount;
    }

    public void setPosCount(Integer posCount) {
        this.posCount = posCount;
    }

    public String getActAgentNum() {
        return actAgentNum;
    }

    public void setActAgentNum(String actAgentNum) {
        this.actAgentNum = actAgentNum;
    }

    public String getReachAgentNum() {
        return reachAgentNum;
    }

    public void setReachAgentNum(String reachAgentNum) {
        this.reachAgentNum = reachAgentNum;
    }

    public String getFlowAgentNum() {
        return flowAgentNum;
    }

    public void setFlowAgentNum(String flowAgentNum) {
        this.flowAgentNum = flowAgentNum;
    }



    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPosno(String posno) {
        this.posno = posno;
    }

    public String getPosno() {
        return posno;
    }

    public void setPosType(Long posType) {
        this.posType = posType;
    }

    public Long getPosType() {
        return posType;
    }

    public void setAgentNum(Long agentNum) {
        this.agentNum = agentNum;
    }

    public Long getAgentNum() {
        return agentNum;
    }

    public void setSaleNum(Long saleNum) {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() {
        return saleNum;
    }

    public void setCreatename(String createname) {
        this.createname = createname;
    }

    public String getCreatename() {
        return createname;
    }

    public void setMachineNum(String machineNum) {
        this.machineNum = machineNum;
    }

    public String getMachineNum() {
        return machineNum;
    }

    public void setIsbound(Long isbound) {
        this.isbound = isbound;
    }

    public Long getIsbound() {
        return isbound;
    }

    public void setActivate(Long activate) {
        this.activate = activate;
    }

    public Long getActivate() {
        return activate;
    }

    public void setActivateDate(String activateDate) {
        this.activateDate = activateDate;
    }

    public String getActivateDate() {
        return activateDate;
    }

    public void setActId(Long actId) {
        this.actId = actId;
    }

    public Long getActId() {
        return actId;
    }

    public void setIsDayStage(Long isDayStage) {
        this.isDayStage = isDayStage;
    }

    public Long getIsDayStage() {
        return isDayStage;
    }

    public void setIsMonStage(Long isMonStage) {
        this.isMonStage = isMonStage;
    }

    public Long getIsMonStage() {
        return isMonStage;
    }

    public void setReturnStatus(Long returnStatus) {
        this.returnStatus = returnStatus;
    }

    public Long getReturnStatus() {
        return returnStatus;
    }

    public void setActEnd(String actEnd) {
        this.actEnd = actEnd;
    }

    public String getActEnd() {
        return actEnd;
    }

    public void setSimFee(Long simFee) {
        this.simFee = simFee;
    }

    public Long getSimFee() {
        return simFee;
    }

    public void setDqType(String dqType) {
        this.dqType = dqType;
    }

    public String getDqType() {
        return dqType;
    }

    public void setDbDate(String dbDate) {
        this.dbDate = dbDate;
    }

    public String getDbDate() {
        return dbDate;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("posno", posno)
                .append("posType", posType)
                .append("agentNum", agentNum)
                .append("saleNum", saleNum)
                .append("createname", createname)
                .append("machineNum", machineNum)
                .append("isbound", isbound)
                .append("activate", activate)
                .append("activateDate", activateDate)
                .append("actId", actId)
                .append("isDayStage", isDayStage)
                .append("isMonStage", isMonStage)
                .append("returnStatus", returnStatus)
                .append("actEnd", actEnd)
                .append("simFee", simFee)
                .append("dqType", dqType)
                .append("dbDate", dbDate)
                .append("createtime", createtime)
                .append("updatetime", updatetime)
                .append("sns", sns)
                .append("actAgentNum", actAgentNum)
                .append("reachAgentNum", reachAgentNum)
                .append("flowAgentNum", flowAgentNum)
                .append("buyerNum", buyerNum)
                .append("posCount", posCount)
                .append("belongToType", belongToType)
                .append("belongToAgentNum", belongToAgentNum)
                .append("buyerName", buyerName)
                .append("machineModel", machineModel)
                .append("actName", actName)
                .toString();
    }
}
